package com.yfqy.admin.domain.dto.promotion;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import lombok.Data;

import java.util.Date;

@Data
public class PromotionQueryDTO {
    private String name;
    private Integer type;
    private Integer status;
    private Date startTime;
    private Date endTime;

    @Min(value = 1, message = "页码必须大于0")
    private Integer pageIndex = 1;

    @Min(value = 10, message = "每页条数必须>=10")
    @Max(value = 100, message = "每页条数不能超过100")
    private Integer pageSize = 10;
}
